import java.util.Vector;
/**
 * clasa CharacterManager
 * */
public class CharacterManager {
    private Vector characters = new Vector();
////////////////////////////////////...
    /**
     * Return a copy of random character from the collection.
     */
    Character getRandomCharacter() {
        int i = (int)(characters.size()*Math.random());
        Character c = (Character)characters.elementAt(i);
        return (Character)c.clone();
    }  // getRandomCharacter()

    /**
     * Add a prototypical object to the collection.
     */
    void addCharacter(Character character) {
        characters.addElement(character);
    } // addCharacter(Character)
//////////////////////////////////////...
} // class CharacterManager

